package com.niiwoo.civet.trade.dao.mapper;

import com.niiwoo.civet.trade.dao.entity.KaoLaProjectRepayment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liming
 * @date 2017-12-25 18:28
 */
public interface KaoLaProjectRepaymentMapperExt extends KaoLaProjectRepaymentMapper{

    /**
     * 根据项目id和还款期数获取 还款计划详情
     * @param projectId
     * @param repayNo
     * @return
     */
    KaoLaProjectRepayment selectByProjectIdAndPeriod(@Param("projectId") Long projectId, @Param("repayNo")Integer repayNo);

    /**
     * 根据项目id获取对应项目的所有还款计划
     * @param projectId
     * @return
     */
    List<KaoLaProjectRepayment> selectByProjectId(Long projectId);
}
